import { Route } from '@angular/router';

import { WelcomeComponent } from '../components/welcome/welcome.component'
import { ChatlistComponent } from '../components/chatlist/chatlist.component';
import { ProfileComponent } from '../components/profile/profile.component';
import { LinkinComponent } from '../components/linkin/linkin.component';
import { ChatingComponent } from '../components/chating/chating.component';

export const Menus: Route[] = [
    {
        path: '', redirectTo: '/welcome', pathMatch: 'full',
        data: { hiden: true }
    },
    {
        path: 'welcome', component: WelcomeComponent,
        data: { title: 'iChat', icon: 'fa fa-home' }
    },
    {
        path: 'chatlist', component: ChatlistComponent,
        data: { title: '聊天', icon: 'fa fa-comments' }
    },
    {
        path: 'chating', component: ChatingComponent,
        data: { title: '聊天', icon: 'fa fa-comment', hiden: true }
    },
    {
        path: 'profile', component: ProfileComponent,
        data: { title: '我的', icon: 'fa fa-user-circle' }
    },
    {
        path: 'profile/linkin', component: LinkinComponent,
        data: { title: '连接', hiden: true }
    }
];
